import request from '@/utils/request'

// 查询诗句列表
export function listBlogPoem(query) {
  return request({
    url: '/blog/blogPoem/list',
    method: 'get',
    params: query
  })
}

// 查询诗句详细
export function getBlogPoem(id) {
  return request({
    url: '/blog/blogPoem/' + id,
    method: 'get'
  })
}

// 新增诗句
export function addBlogPoem(data) {
  return request({
    url: '/blog/blogPoem',
    method: 'post',
    data: data
  })
}

// 修改诗句
export function updateBlogPoem(data) {
  return request({
    url: '/blog/blogPoem',
    method: 'put',
    data: data
  })
}

// 删除诗句
export function delBlogPoem(id) {
  return request({
    url: '/blog/blogPoem/' + id,
    method: 'delete'
  })
}
